package com.example.blockingqueue.blockingqueueconfig.delayqueue;

import com.example.blockingqueue.controller.Order;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;

@Configuration
public class DelayQueueConfig {

    @Bean
    public DelayQueue<Order> delayQueue() {
        System.out.println("DelayQueueConfig.delayQueue");
        return new DelayQueue<>();
    }

}
